package com.efast.dmom.mgmt.controller.mes;

import java.util.ArrayList;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.efast.cafe.framework.bean.ResultBean;
import com.efast.dmom.mgmt.bean.mes.SoftDeleteUtilBean;
import com.efast.dmom.mgmt.service.mes.MesSoftDeleteHistoryService;
@Controller
@RequestMapping(value = "/222")
public class testsoftdeletedController {
	@Autowired
	private MesSoftDeleteHistoryService mesSoftDeleteHistoryService;
	
	
	@RequestMapping("/6666666/{carType}")
	public @ResponseBody ResultBean selectAllStation (@PathVariable("carType") String carType) {
		SoftDeleteUtilBean softDeleteUtilBean = new SoftDeleteUtilBean();
		softDeleteUtilBean.setCarType(carType);
		List<Integer> list = new ArrayList<Integer> ();
		list.add(3559);
		softDeleteUtilBean.setOrderItemIds(list);
		softDeleteUtilBean.setOprationType("weweweewwewe");
		boolean softDelete = mesSoftDeleteHistoryService.SoftDeleteTwBasLot(softDeleteUtilBean);
		System.out.println(softDelete);
		return null;
	}

}
